#include "allTaskList.h"

allTaskList::allTaskList(){
}

TaskList& allTaskList::getUpcomingTasks(){
	return upcomingTasks;
}

TaskList& allTaskList::getDeletedTasks(){
	return deletedTasks;
}

TaskList& allTaskList::getFinishedTasks(){
	return finishedTasks;
}
TaskList& allTaskList::getDisplayedList(){
	return displayedList;
}
string allTaskList::printTaskList(TaskList& curTaskList){
	int curSize;
	curSize=curTaskList.getLength();
	Task curTask;
	ostringstream outputString;
	for (int i=1;i<=curSize;i++){
		curTaskList.retrieve(i,curTask);
		outputString<<i<<". "<<curTask.toPrint()<<endl;
	}
	string output;
	output=outputString.str();
	return output;
}